package com.example.myspringboot.design.factory.abstracts.SimpleFactory;

import com.example.myspringboot.design.factory.dto.Product;

/**
 * @Author ZhengShan
 * @Date 2024 06 26 11 25
 **/
public abstract class Creator {

    public abstract Product factoryMethod();

    public final Product createProduct(){
        Product product = factoryMethod();
        //这里可以添加一些逻辑，比如初始化等
        return product;
    }

}
